<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class WxRobot_Wp</title>

	<link rel="stylesheet" href="resources/style.css?e99947befd7bf673c6b43ff75e9e0f170c88a60e">

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
				<h3>Packages</h3>
			<ul>
				<li>
					<a href="package-None.html">
						None					</a>

						</li>
				<li>
					<a href="package-WxRobot.html">
						WxRobot<span></span>
					</a>

						<ul>
				<li>
					<a href="package-WxRobot.Admin.html">
						Admin					</a>

						</li>
				<li>
					<a href="package-WxRobot.Cmd.html">
						Cmd					</a>

						</li>
				<li>
					<a href="package-WxRobot.CoreFunctions.html">
						CoreFunctions					</a>

						</li>
				<li>
					<a href="package-WxRobot.Exends.html">
						Exends					</a>

						</li>
				<li>
					<a href="package-WxRobot.Install.html">
						Install					</a>

						</li>
				<li>
					<a href="package-WxRobot.Table.html">
						Table					</a>

						</li>
				<li>
					<a href="package-WxRobot.Uninstall.html">
						Uninstall					</a>

						</li>
				<li>
					<a href="package-WxRobot.WxSDK.html">
						WxSDK					</a>

						</li>
							</ul></li>
			</ul>
		</div>

		<hr>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-WxRobot_Table_Extends.html">WxRobot_Table_Extends</a></li>
				<li><a href="class-WxRobot_Table_Menu.html">WxRobot_Table_Menu</a></li>
				<li><a href="class-WxRobot_Table_Records.html">WxRobot_Table_Records</a></li>
				<li><a href="class-WxRobot_Table_Reply.html">WxRobot_Table_Reply</a></li>
				<li class="active"><a href="class-WxRobot_Wp.html">WxRobot_Wp</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="">
		<input type="hidden" name="ie" value="UTF-8">
		<input type="text" name="q" class="text" placeholder="Search">
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
<span>Package</span>			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class WxRobot_Wp</h1>


	<div class="description">
	<p>WxRobot_Wp WordPress文章查询相关功能</p>
	</div>









	<div class="info">
		
		
		
		<b>Package:</b> <a href="package-WxRobot.html">WxRobot</a>\<a href="package-WxRobot.Table.html">Table</a><br>

				<b>Author:</b>
				midoks<br>
			<b>Located at</b> <a href="source-class-WxRobot_Wp.html#11-383" title="Go to source code">class-wx-wp.php</a>
		<br>
	</div>



	<table class="summary methods" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="__construct" id="___construct">

		<td class="attributes"><code>
			 public 

			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___construct">#</a>
		<code><a href="source-class-WxRobot_Wp.html#21-36" title="Go to source code">__construct</a>( )</code>

		<div class="description short">
			<p>构造函数</p>
		</div>

		<div class="description detailed hidden">
			<p>构造函数</p>







		</div>
		</div></td>
	</tr>
	<tr data-order="instance" id="_instance">

		<td class="attributes"><code>
			 public static

			<code><a href="class-WxRobot_Table_Extends.html">WxRobot_Table_Extends</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_instance">#</a>
		<code><a href="source-class-WxRobot_Wp.html#43-53" title="Go to source code">instance</a>( )</code>

		<div class="description short">
			<p>WxRobot 扩展表类实例化</p>
		</div>

		<div class="description detailed hidden">
			<p>WxRobot 扩展表类实例化</p>



				<h4>Returns</h4>
				<div class="list">
					<code><a href="class-WxRobot_Table_Extends.html">WxRobot_Table_Extends</a></code><br><ul>
<li>Table Extends instance</li>
</ul>
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="option_pic_to_array" id="_option_pic_to_array">

		<td class="attributes"><code>
			 public 

			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_option_pic_to_array">#</a>
		<code><a href="source-class-WxRobot_Wp.html#55-83" title="Go to source code">option_pic_to_array</a>( )</code>

		<div class="description short">
			<p>把配置中图片变成变为数据处理</p>
		</div>

		<div class="description detailed hidden">
			<p>把配置中图片变成变为数据处理</p>







		</div>
		</div></td>
	</tr>
	<tr data-order="path_url_encode" id="_path_url_encode">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_path_url_encode">#</a>
		<code><a href="source-class-WxRobot_Wp.html#85-94" title="Go to source code">path_url_encode</a>( <span> <var>$thumb</var></span> )</code>

		<div class="description short">
			<p>对中文名的图片路径进行urlencode编码</p>
		</div>

		<div class="description detailed hidden">
			<p>对中文名的图片路径进行urlencode编码</p>



				<h4>Returns</h4>
				<div class="list">
					string<br>$thumb 图片路径<br>
					string
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="get_opt_pic" id="_get_opt_pic">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_get_opt_pic">#</a>
		<code><a href="source-class-WxRobot_Wp.html#96-128" title="Go to source code">get_opt_pic</a>( <span>string <var>$c</var></span>, <span>string <var>$type</var></span> )</code>

		<div class="description short">
			<p>获取文章中的图片</p>
		</div>

		<div class="description detailed hidden">
			<p>获取文章中的图片</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$c</var></dt>
					<dd>文章内容</dd>
					<dt><var>$type</var></dt>
					<dd>图片类型</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					string
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="get_opt_pic_small" id="_get_opt_pic_small">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_get_opt_pic_small">#</a>
		<code><a href="source-class-WxRobot_Wp.html#131-145" title="Go to source code">get_opt_pic_small</a>( <span>string <var>$content</var> = <span class="php-quote">''</span></span> )</code>

		<div class="description short">
			<p>获取最优图片地址</p>
		</div>

		<div class="description detailed hidden">
			<p>获取最优图片地址</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$content</var></dt>
					<dd>文章内容</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					string
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="get_opt_pic_big" id="_get_opt_pic_big">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_get_opt_pic_big">#</a>
		<code><a href="source-class-WxRobot_Wp.html#147-161" title="Go to source code">get_opt_pic_big</a>( <span>string <var>$content</var> = <span class="php-quote">''</span></span> )</code>

		<div class="description short">
			<p>获取最优图片地址</p>
		</div>

		<div class="description detailed hidden">
			<p>获取最优图片地址</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$content</var></dt>
					<dd>文章内容</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					string
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="head_one_line" id="_head_one_line">

		<td class="attributes"><code>
			 public 

			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_head_one_line">#</a>
		<code><a href="source-class-WxRobot_Wp.html#163-174" title="Go to source code">head_one_line</a>( <span>string <var>$c</var></span> )</code>

		<div class="description short">
			<p>对每个第一条消息,进行处理字符截取</p>
		</div>

		<div class="description detailed hidden">
			<p>对每个第一条消息,进行处理字符截取</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$c</var></dt>
					<dd></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					string
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="Qid" id="_Qid">

		<td class="attributes"><code>
			 public 

			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_Qid">#</a>
		<code><a href="source-class-WxRobot_Wp.html#177-207" title="Go to source code">Qid</a>( <span>integer <var>$id</var></span> )</code>

		<div class="description short">
			<p>指定文章回复</p>
		</div>

		<div class="description detailed hidden">
			<p>指定文章回复</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$id</var></dt>
					<dd>文章的ID</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					array
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="QidResult" id="_QidResult">

		<td class="attributes"><code>
			 public 

			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_QidResult">#</a>
		<code><a href="source-class-WxRobot_Wp.html#209-227" title="Go to source code">QidResult</a>( <span>integer <var>$id</var></span> )</code>

		<div class="description short">
			<p>指定文章回复</p>
		</div>

		<div class="description detailed hidden">
			<p>指定文章回复</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$id</var></dt>
					<dd>文章的ID</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					array
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="Qids" id="_Qids">

		<td class="attributes"><code>
			 public 

			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_Qids">#</a>
		<code><a href="source-class-WxRobot_Wp.html#230-258" title="Go to source code">Qids</a>( <span>array <var>$id</var></span> )</code>

		<div class="description short">
			<p>指定文章回复</p>
		</div>

		<div class="description detailed hidden">
			<p>指定文章回复</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$id</var></dt>
					<dd>文章的ID</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					array
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="today" id="_today">

		<td class="attributes"><code>
			 public 

			xml
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_today">#</a>
		<code><a href="source-class-WxRobot_Wp.html#260-289" title="Go to source code">today</a>( )</code>

		<div class="description short">
			<p>获取今日发布的文章</p>
		</div>

		<div class="description detailed hidden">
			<p>获取今日发布的文章</p>



				<h4>Returns</h4>
				<div class="list">
					xml
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="hot" id="_hot">

		<td class="attributes"><code>
			 public 

			xml
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_hot">#</a>
		<code><a href="source-class-WxRobot_Wp.html#291-323" title="Go to source code">hot</a>( <span>integer <var>$int</var></span> )</code>

		<div class="description short">
			<p>获取最热文章</p>
		</div>

		<div class="description detailed hidden">
			<p>获取最热文章</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$int</var></dt>
					<dd>数量</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					xml
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="news" id="_news">

		<td class="attributes"><code>
			 public 

			xml
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_news">#</a>
		<code><a href="source-class-WxRobot_Wp.html#326-352" title="Go to source code">news</a>( <span>integer <var>$int</var></span> )</code>

		<div class="description short">
			<p>获取最新文章</p>
		</div>

		<div class="description detailed hidden">
			<p>获取最新文章</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$int</var></dt>
					<dd>数量</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					xml
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="rand" id="_rand">

		<td class="attributes"><code>
			 public 

			xml
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_rand">#</a>
		<code><a href="source-class-WxRobot_Wp.html#354-380" title="Go to source code">rand</a>( <span>integer <var>$int</var></span> )</code>

		<div class="description short">
			<p>获取随机文章</p>
		</div>

		<div class="description detailed hidden">
			<p>获取随机文章</p>


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$int</var></dt>
					<dd>数量</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					xml
				</div>




		</div>
		</div></td>
	</tr>
	</table>












	<table class="summary properties" id="properties">
	<caption>Properties summary</caption>
	<tr data-order="opt_big_show" id="$opt_big_show">
		<td class="attributes"><code>
			public  
			array
		</code></td>

		<td class="name">
				<a href="source-class-WxRobot_Wp.html#17" title="Go to source code"><var>$opt_big_show</var></a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</td>
		<td class="value">
			<div>
				<a href="#$opt_big_show" class="anchor">#</a>
				<code><span class="php-keyword1">array</span>()</code>
			</div>
		</td>
	</tr>
	<tr data-order="opt_small_show" id="$opt_small_show">
		<td class="attributes"><code>
			public  
			array
		</code></td>

		<td class="name">
				<a href="source-class-WxRobot_Wp.html#18" title="Go to source code"><var>$opt_small_show</var></a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</td>
		<td class="value">
			<div>
				<a href="#$opt_small_show" class="anchor">#</a>
				<code><span class="php-keyword1">array</span>()</code>
			</div>
		</td>
	</tr>
	<tr data-order="_instance" id="$_instance">
		<td class="attributes"><code>
			public static 
			
		</code></td>

		<td class="name">
				<a href="source-class-WxRobot_Wp.html#38-41" title="Go to source code"><var>$_instance</var></a>

			<div class="description short">
				<p>Table Extends Instance</p>
			</div>

			<div class="description detailed hidden">
				<p>Table Extends Instance</p>

			</div>
		</td>
		<td class="value">
			<div>
				<a href="#$_instance" class="anchor">#</a>
				<code><span class="php-keyword1">null</span></code>
			</div>
		</td>
	</tr>
	</table>






</div>

	<div id="footer">
		 API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
